// 品控部
const auditStatus = {
  "0": "待处理",
  "2": "已通过",
  "1": "补充资质",
};
type AuditStatusId = "0" | "1" | "2" | "3";
export const auditStatusNameById = (id: AuditStatusId): string | undefined => {
  return auditStatus[id] ?? "未知状态";
};

// 核价部
const auditStatu = {
  "0": "待处理",
  "2": "已通过",
  "1": "重新议价",
};
export const auditStatusNameByIds = (id: AuditStatusId): string | undefined => {
  return auditStatu[id] ?? "未知状态";
};

// 无合同入库
const auditStatuss = {
  "0": "待处理",
  "1": "审核驳回",
  "2": "初审通过",
  "3": "已通过",
};
export const auditStatusNameByIdss = (id: AuditStatusId): string | undefined => {
  return auditStatuss[id] ?? "未知状态";
};

// 产品部状态集合
const shelvesStatus = {
  "1": "待上架",
  "2": "已上架",
  "3": "已下架",
  "4": "待下架"
};
type ShelvesStatusId = "1" | "2" | "3" | "4";
export const shelvesStatusNameByIdss = (id: ShelvesStatusId): string | undefined => {
  return shelvesStatus[id] ?? "";
};